/*
 * Copyright 2009 The Closure Library Authors. All Rights Reserved.
 *
 * Use of this source code is governed by an Apache 2.0 License.
 * See the COPYING file for details.
 */

/*
 * Standard styling for buttons created by goog.ui.MenuButtonRenderer.
 *
 * @author attila@google.com (Attila Bodis)
 */

/* State: resting. */
.ks-menu-button {
    display: inline-block;
    *display: inline;
    *zoom:1;
    /* Client apps may override the URL at which they serve the image. */
    background: #ddd url(../../button/assets/button-bg.png) repeat-x top left;
    border: 1px;
    color: #000;
    cursor: pointer;
    list-style: none;
    margin: 2px;
    outline: none;
    padding: 0;
    text-decoration: none;
    vertical-align: middle;
    border-style: solid;
    border-color: #aaa;
    padding: 3px 4px;
}

/* State: disabled. */
.ks-menu-button-disabled {
    background-image: none !important;
    opacity: 0.3;
    -moz-opacity: 0.3;
    filter: alpha(opacity = 30);
    color: #333 !important;
    border-color: #999 !important;
}

.ks-menu-button-disabled .ks-menu-button-content,
.ks-menu-button-disabled .ks-menu-button-dropdown {
    color: #333 !important;
    border-color: #999 !important;
}

/* State: hover. */
.ks-menu-button-hover {
    border-color: #9cf #69e #69e #7af !important; /* Hover border wins. */
}

/* State: active, open. */
.ks-menu-button-active,
.ks-menu-button-open {
    background-color: #bbb;
    background-position: bottom left;
}

/* State: focused. */
.ks-menu-button-focused {
    border-color: orange;
}

/* Caption style. */
.ks-menu-button-content {
    display: inline-block;
    *display: inline;
    *zoom:1;
    padding: 0 4px 0 0;
    vertical-align: top;
}

/* Dropdown arrow style. */
.ks-menu-button-dropdown {
    display: inline-block;
    *display: inline;
    *zoom:1;
    height: 18px;
    width: 7px;
    /* Client apps may override the URL at which they serve the sprite. */
    background: url(http://img02.taobaocdn.com/tps/i2/T1wZBBFahaXXX2fxQq-624-16.png) no-repeat -388px 0;
    vertical-align: top;
}

/* Pill (collapsed border) styles. */
/* TODO(gboyer): Remove specific menu button styles and have any button support being a menu button. */
.ks-menu-button-collapse-right,
.ks-menu-button-collapse-right {
    margin-right: 0 !important;
}

.ks-menu-button-collapse-left,
.ks-menu-button-collapse-left {
    margin-left: 0 !important;
}

.ks-menu-button-collapse-left {
    border-left: 1px solid #fff;
}

.ks-menu-button-collapse-left.ks-menu-button-checked {
    border-left: 1px solid #ddd;
}
.ks-popupmenu {
    position: absolute;
    left: -9999px;
    top:-9999px;
}
.ks-popupmenu-shown{
    visibility: visible;
}

.ks-popupmenu-hidden{
    visibility: hidden;
}
